//
//  Debugger.m
//  iBasic
//
//  Created by Andrew Barry on 12/04/08.
//  Copyright 2008 Barry Computer Services. All rights reserved.
//

#import "Debugger.h"
#import "DebugServer.h"

static DebugLauncher *shared;

@implementation DebugLauncher


+(DebugLauncher *) sharedLauncher
{
	if (shared == nil) {
		shared = [DebugLauncher new];
		[NSThread detachNewThreadSelector:@selector(startServer:) toTarget:[DebugServer instance] withObject:nil];
		
	}
	return shared;
}

-(void) launch: (NSString *) path
{
	[[NSWorkspace sharedWorkspace] launchApplication:path];
}

@end
